<%--                                                                       --%>
<%-- Copyright (c) 2004-2005 BroadVision, Inc.  All rights reserved.       --%>
<%--                                                                       --%>
<%-- This software is copyrighted. Under the copyright laws, this software --%>
<%-- may not be copied, in whole or in part, without prior written consent --%>
<%-- of BroadVision, Inc. or its assignees. This software is provided      --%>
<%-- under the terms of a license between BroadVision and the recipient,   --%>
<%-- and its use is subject to the terms of that license.                  --%>
<%--                                                                       --%>
<%-- This software may be protected by one or more U.S. and International  --%>
<%-- patents.  Certain applications of BroadVision One-To-One software are --%>
<%-- covered by U.S. patent 5,710,887.                                     --%>
<%--                                                                       --%>
<%-- TRADEMARKS: BroadVision and BroadVision One-To-One are registered     --%>
<%-- trademarks of BroadVision, Inc., in the United States and the         --%>
<%-- European Community, and are trademarks of BroadVision, Inc., in other --%>
<%-- countries.  The BroadVision logo, is a trademark of BroadVision,      --%>
<%-- Inc., in the United States and other countries. Additionally, IONA    --%>
<%-- and Orbix are trademarks of IONA Technologies, Ltd.  RSA, MD5, and    --%>
<%-- RC2 are trademarks of RSA Data Security, Inc.                         --%>
<%--                                                                       --%>

<%@ taglib uri="/WEB-INF/c.tld" prefix="c" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>

<script language="JavaScript">

//
//
// 
function confirmDeleteAlert(form) {
  var ok = confirm('<bean:message key="mt.alert.confirm.delete" bundle="mt.messages"/>');
  return ok;
}

</script>

<table class="zoneFive" width="100%" border="0" cellspacing="0" cellpadding="0" summary="content area">
  <tr>
    <td valign="top" width="100%">

        <div class="errorMessage"><html:errors bundle="mt.messages"/></div>

        <div class="pageSubtitle">
          <span class="left"><bean:message key="mt.alert.pageSubtitle" bundle="mt.messages"/></span>
          <span class="right">
            <form action="<html:rewrite page="/mt/alertDelete.do"/>" method="post">
            <html:hidden name="mtAlertView" property="alertName"/>
            <html:hidden name="mtAlertView" property="messageId"/>
            <html:submit styleClass="inputButton" property="submitBtn" onclick="return confirmDeleteAlert(this.form)">
              <bean:message key="button.delete" bundle="mt.messages"/>
            </html:submit>
            </form>
          </span>
        </div>

        <table class="labelForm" width="100%" border="0" cellspacing="0" cellpadding="0" summary="Alert view">
          <tr>
            <td class="label" width="20%">
              <bean:message key="mt.alert.label.subject" bundle="mt.messages"/>:
            </td>
            <td class="labelField" width="80%">
              <c:out value="${mtAlertView.map.subject}"/>&nbsp;
            </td>
          </tr>
          <tr>
            <td class="label" width="20%">
              <bean:message key="mt.alert.label.alert.message" bundle="mt.messages"/>:
            </td>
            <td class="labelField" width="80%">
              <c:out value="${mtAlertView.map.alertMessage}"/>&nbsp;
            </td>
          </tr>
          <tr>
            <td class="label" width="20%">
              <bean:message key="mt.alert.label.creationDate" bundle="mt.messages"/>:
            </td>
            <td class="labelField" width="80%">
              <bean:write name="mtAlertView" property="creationDate" formatKey="format.datetime.long" bundle="mc.messages"/>&nbsp;
            </td>
          </tr>
        </table>
        <div class="pageButtonWrap" align="right">
          <form action="<html:rewrite page="/mt/inbox.do"/>">
          <html:cancel styleClass="inputButton" property="cancelBtn">
            <bean:message key="button.cancel" bundle="mt.messages"/>
          </html:cancel>
          </form>
        </div>
    </td>
  </tr>
</table>
